using System;
using System.Net;

namespace NetDns
{
	/// <summary>
	/// A NULL Resource Record (RR) (RFC1035 3.3.10)
	/// </summary>
	public class Null : IRecord
	{
		private readonly byte[] data;

		public byte[] Data { get { return data; } }

		/// <summary>
		/// Constructs a NS record by reading bytes from a return message
		/// </summary>
		/// <param name="pointer">A logical pointer to the bytes holding the record</param>
		internal Null(Pointer pointer, int length)
		{
			this.data = pointer.ReadBytes(length);
		}

		public override string ToString()
		{
            return "NULL data record";
			//return string.Format("HEX encoded binary data: {0}", XCS.Core.Security.Encoding.Hex16Encode(this.data));
		}
	}
}